const http = require('http')

const body = 'hello'
const server = http.createServer((req, res) => {
  res.writeHeader(200, 'success', {
    'Content-Type': 'text/plain',
    'Content-Length': Buffer.byteLength(body)
  })
  res.write(body)
  res.end()
})

server.listen(8080)

console.log('server is serve at localhost:8080/')
